﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RedditSharp;

namespace TestApp
{
    class Program
    {
        static void Main(string[] args)
        {
            Reddit.Login("MyCookie.txt");
            //Reddit.Login("username", "passwd");
            //Reddit.SaveCookie("MyCookie.txt");

            Console.WriteLine("Logged in as " + Reddit.Me.Name + ".");

            RedditPost[] searchPosts = Reddit.SearchPosts("Test");

            foreach (RedditPost post in searchPosts)
                Console.WriteLine(post.Title);

            Console.ReadKey();
        }
    }
}
